/*
 * Project: com.mmall.pay.api.dto
 *
 * File Created at 2019-10-28
 *
 * Copyright 2019 CMCC Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * ZYHY Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license.
 */
package com.mmall.pay.api.dto;

import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 组装第三方申请支付的 DTO
 * @author jianghucoding
 * @date 2019-10-28
 */
@Data
@Accessors(chain = true)
public class PayApplyDTO {

    /**
     * 支付渠道
     */
    @NotEmpty
    private String payChannel;

    @NotNull
    private Long orderId;

    @NotNull
    private Long userId;

    @Min(value = 1)
    private Integer price;

    @Min(value = 1)
    private Integer totalAmount;
}
